package com.cr.admin.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cr.admin.system.pojo.entity.SysRoleMenu;

import java.util.List;

public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

    int insertBatchRoleMenu(List<SysRoleMenu> roleMenuList);

    int deleteRoleMenuByRoleId(Long roleId);

    int deleteRoleMenuByRoleIds(List<Long> roleIds);

    int deleteRoleMenuByMenuId(Long menuId);

    int deleteRoleMenuByMenuIds(List<Long> menuIds);

    List<Long> selectMenuIdsByRoleId(Long roleId);

}
